From: Jasper St. Pierre Date: Tue, 16 Oct 2012 17:50:13 +0000 (-0400) Subject: autorunManager: Stop erring on the side of caution for network mounts X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~5587 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=8de4070f7fc6cf5aceb15794a2579b4e27042d09;p=gnome-shell.git autorunManager: Stop erring on the side of caution for network mounts Every mount that we care about that's local should have a GVolume associated with it. https://bugzilla.gnome.org/show_bug.cgi?id=686241 --- diff --git a/js/ui/components/autorunManager.js b/js/ui/components/autorunManager.js index bf9475970..7709a3d79 100644 --- a/js/ui/components/autorunManager.js +++ b/js/ui/components/autorunManager.js @@ -45,14 +45,12 @@ function isMountRootHidden(root) { } function isMountNonLocal(mount) { - // If the mount doesn't have an associated volume, that means it could - // be a remote filesystem. For certain kinds of local filesystems, - // like digital cameras and music players, there's no associated - // gvfs volume, so err on the side of caution and assume it's a local - // filesystem to allow the prompt. + // If the mount doesn't have an associated volume, that means it's + // an uninteresting filesystem. Most devices that we care about will + // have a mount, like media players and USB sticks. let volume = mount.get_volume(); if (volume == null) - return false; + return true; return (volume.get_identifier("class") == "network"); }